package com.chucang.shucang.common.security.exception;

import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
import org.springframework.security.oauth2.core.OAuth2Error;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/9/15 21:08
 * @description scope异常
 */
public class ScopeException extends OAuth2AuthenticationException {

    public ScopeException(String msg) {
        super(new OAuth2Error(msg), msg);
    }

    public ScopeException(String msg, Throwable cause) {
        super(new OAuth2Error(msg), cause);
    }

}
